<template>
	<view class="content">
		<view class="title">
			{{title}}
		</view>
		<view class="detail-content">
			 <rich-text :nodes="strings"></rich-text>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				title:'',
				strings: ''
			}
		},
		onLoad (e) {
			uni.request({
				url: 'https://unidemo.dcloud.net.cn/api/news/36kr/'+e.newsid,
				method: 'GET',
				data: {},
				success: res => {
					this.title = res.data.title
					this.strings = res.data.content
				}
			});
		}
	}
</script>
<style lang="stylus">
	.content
		padding: 10upx 2%
		width: 96% 
		flex-wrap: wrap
		.title
			line-height: 2em; 
			font-weight: bold; 
			font-size: 38upx;
		.detail-content
			line-height: 2em;
</style>
